package com.yantong.mapper;

import com.yantong.pojo.CentreIndustry;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface CentreIndustryMapper {
	/**
	 * delete by primary key
	 *
	 * @param id primaryKey
	 * @return deleteCount
	 */
	int deleteByPrimaryKey(Long id);

	/**
	 * insert record to table
	 *
	 * @param record the record
	 * @return insert count
	 */
	int insert(CentreIndustry record);

	/**
	 * insert record to table selective
	 *
	 * @param record the record
	 * @return insert count
	 */
	int insertSelective(CentreIndustry record);

	/**
	 * select by primary key
	 *
	 * @param id primary key
	 * @return object by primary key
	 */
	CentreIndustry selectByPrimaryKey(Long id);

	/**
	 * update record selective
	 *
	 * @param record the updated record
	 * @return update count
	 */
	int updateByPrimaryKeySelective(CentreIndustry record);

	/**
	 * update record
	 *
	 * @param record the updated record
	 * @return update count
	 */
	int updateByPrimaryKey(CentreIndustry record);

	/**
	 * 查询列表
	 *
	 * @param centreIndustry 参数信息
	 * @return java.util.List<com.jz.centre.domain.CentreIndustry>
	 * @author liaozhaogui
	 * @date 2020/12/22 11:20
	 */
	List<CentreIndustry> selectByAll(CentreIndustry centreIndustry);

	List<CentreIndustry> listByAll(CentreIndustry centreIndustry, RowBounds rowBounds);




	int selectByCount();

    int countById(@Param("id") Long id);




}